home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 4.adf / 204inc_h.lzh / graphics / gfx.h < prev    next >
C/C++ Source or Header  |  1991-03-14  |  965b  |  61 lines

  1. #ifndef    GRAPHICS_GFX_H
  2. #define    GRAPHICS_GFX_H
  3. /*
  4. **    $Filename: graphics/gfx.h $
  5. **    $Release: 2.04 $
  6. **    $Revision: 37.0 $
  7. **    $Date: 91/01/07 $
  8. **
  9. **    general include file for application programs
  10. **
  11. **    (C) Copyright 1985,1986,1987,1988,1989 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_TYPES_H
  16. #include <exec/types.h>
  17. #endif
  18.  
  19. #define BITSET    0x8000
  20. #define BITCLR    0
  21.  
  22. #define AGNUS
  23. #ifdef AGNUS
  24. #define TOBB(a)      ((long)(a))
  25. #else
  26. #define TOBB(a)      ((long)(a)>>1)  /* convert Chip adr to Bread Board Adr */
  27. #endif
  28.  
  29. struct Rectangle
  30. {
  31.     WORD   MinX,MinY;
  32.     WORD   MaxX,MaxY;
  33. };
  34.  
  35. struct Rect32
  36. {
  37.     LONG    MinX,MinY;
  38.     LONG    MaxX,MaxY;
  39. };
  40.  
  41. typedef struct tPoint
  42. {
  43.     WORD x,y;
  44. } Point;
  45.  
  46. typedef UBYTE *PLANEPTR;
  47.  
  48. struct BitMap
  49. {
  50.     UWORD   BytesPerRow;
  51.     UWORD   Rows;
  52.     UBYTE   Flags;
  53.     UBYTE   Depth;
  54.     UWORD   pad;
  55.     PLANEPTR Planes[8];
  56. };
  57.  
  58. #define RASSIZE(w,h)    ((h)*( ((w)+15)>>3&0xFFFE))
  59.  
  60. #endif    /* GRAPHICS_GFX_H */
  61.